package com.ticket.sass.common.ticketserver.platform.cx30.response

import com.google.gson.annotations.SerializedName

data class SubmitOrder(
    @SerializedName("SubmitOrderResult")
    val submitOrderResult: SubmitOrderResult
) {
    data class SubmitOrderResult(
        @SerializedName("ResultCode")
        override val resultCode: Int,
        @SerializedName("Message")
        override val message: String,
        @SerializedName("OrderCode")
        val orderCode: String,
        @SerializedName("FeatureAppNo")
        val featureAppNo: String,
        @SerializedName("PrintNo")
        val printNo: String,
        @SerializedName("VerifyCode")
        val verifyCode: String,
        @SerializedName("SeatInfos")
        val seatInfos: SeatInfos?,
    ) : BaseResult {
        data class SeatInfos(
            /**
             * 座位编码，如果多个就是数组类型，如果只有一个就是字符串
             */
            @SerializedName("SeatInfo")
            val seatInfo: Any,
        ) {
            data class SeatInfo(
                @SerializedName("TicketInfoCode")
                val ticketInfoCode: String,
                @SerializedName("FilmTicketCode")
                val filmTicketCode: String,
                @SerializedName("SeatCode")
                val seatCode: String,
            )
        }
    }
}
